package com.googlecode.jlogindexer.client;

import org.apache.log4j.Logger;

import com.googlecode.jlogindexer.client.exception.MappingException;
import com.googlecode.jlogindexer.client.utils.SpringUtils;

public class ClientMain {


	private static Logger logger=Logger.getLogger(ClientMain.class);
	
	public static void main(String[] args) throws MappingException  {
		
		ClientMain main=new ClientMain();
		main.kickOff();
		
	}

	private void kickOff() throws MappingException {

		try {
			JLogalizerClient jlogalizerClient=(JLogalizerClient) SpringUtils.getContext().getBean("jlogalizerClient");
			jlogalizerClient.startTailing();
		} catch (InterruptedException e) {
			logger.error(e.getMessage(), e);
			e.printStackTrace();
		}
	}

}
